package com.example.chainofresponsibilitypattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/22  23:35:40
 * @className Handler
 * @verson 1.0.0
 */
public abstract class Handler {

    protected Handler successor;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handlerRequest(int request);
}
